#ifndef HTTPCLIENT_H
#define HTTPCLIENT_H

#include <QObject>
#include <QByteArray>

#include "httprequest.h"
#include "client.h"

class QTcpSocket;

class HttpClient : public Client
{
    Q_OBJECT

public:
    HttpClient(QTcpSocket *socket, QObject *parent = 0);

    void sendRequest(HttpRequest resquest);

Q_SIGNALS:
    void requestReceived(HttpRequest);

private Q_SLOTS:
    void processIncomingData();

protected:
    QByteArray v_lastUnprocessedData;

};


#endif // HTTPCLIENT_H
